<?php include 'connection.php'; ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>
<head>
 
  <title>Markup Testing Form Skeleton</title>
   <link rel="stylesheet" type="text/css" href="jquery.autocomplete.css"/>
   <script src="jquery.js" type="text/javascript" language="javascript"></script>
   <script src="jquery.autocomplete.js" type="text/javascript" language="javascript"></script>
   <script>
   $(document).ready(function(){
       $("#airline_code").autocomplete("airline.php",{minChars:3,dataType:"json"});
   });
   </script>
</head>

<body>
<?php 
$arr=array();
$query=mysql_query("SELECT * FROM configuration");
while($row=mysql_fetch_array($query)){
	$arr[]=$row;
}
//print_r($arr);


?>

<div align="center">
  <form action="preview_markup.php" method="post">
  
    <table>
      <tr>
        <td>Config Id</td>

        <td><select name="config_id" id="config_id" style="width:145px;">
        <?php for($i=0;$i<count($arr);$i++){ ?>
  		<option value="<?php echo $arr[$i]['idConfiguration']; ?>" ><?php echo $arr[$i]['configuration_name']; ?> </option>
        
        <?php } ?></select>       
        
             
        
        
        </td>
      </tr>

      <tr>
        <td>Fare type</td>

        <td><select name="fare_type" id="fare_type" style="width:145px;">
        <option value="SR">SR</option>
        <option value="PUB">PUB</option>
        </select>
        </td>
      </tr>

      <tr>
        <td>Airline Code</td>

        <td><input type="text" value="" name="airline_code" id=
        "airline_code"></td>
      </tr>

      <tr>
        <td>Trip Type</td>

        <td>
        <select name="trip_type" id="trip_type" style="width:145px;">
        <option value="RT">ROUND TRIP</option>
        <option value="OW">ONE WAY</option>
        </select>
        </td>
      </tr>

      <tr>
        <td>PTC</td>

        <td><select name="ptc" id="ptc"  style="width:145px;">
        <option value="ADT">ADT</option>
        <option value="CNN">CNN</option>
        <option value="INF">INF</option>
        <option value="JCB">JCB</option>
        <option value="JNF">JNF</option>
        <option value="JNN">JNN</option>
        </select>
        </td>
      </tr>

      <tr>
        <td>Cabin Claaa</td>

        <td><select name="cabin_class" id="cabin_class" style="width:145px;">
        <option value="E">Economic Class </option>
        <option value="F">First Class </option>
        <option value="B">Business Class </option>
        </select>
        </td>
      </tr>

      <tr>
        <td>SID</td>

        <td>
        <select name="sid" id="sid" style="width:145px;">
        <option value="XSY">XSY</option>
        <option value="33J">33J</option>
        </select>
        </td>
      </tr>

      <tr>
        <td>Range</td>

        <td>
        <select name="range" id="range" style="width:145px;">
        <option value="1">1</option>
        <option value="2">2</option>
        <option value="3">3</option>
		<option value="4">4</option>
        </select>
        </td>
      </tr>

      <tr>
        <td>Time Search</td>

        <td>
        <select name="time_search" id="time_search" style="width:145px;">
        <option value="D">DAY</option>
        <option value="N">NIGHT</option>
        </select>
        </td>
      </tr>

      <tr>
        <td>Flight Type</td>

        <td>
        <select name="flight_type" id="flight_type" style="width:145px;">
        <option value="0">NON STOP </option>
        <option value="1">ONE STOP </option>
        <option value="2">TWO OR MORE STOP </option>
        </select>
        </td>
      </tr>

      <tr>
        <td colspan="2" align="center"><input type="submit" value=
        "Test Markup"></td>
      </tr>
    </table>
 
  </form></div>

</body>
</html>
